package oop4;

import java.util.Arrays;

/**
 * @author oldliu
 * @since 1.0
 */
public class ChinaPiolinTest {
    public static void main(String[] args) {
        //static int x=100;
        System.out.println("古时候：" + ChinaPiolin.lines + "条线");
        ChinaPiolin.print();
        System.out.println(">>>>>>>>>>>>>>>>>>");
        ChinaPiolin c = new ChinaPiolin();
        c.owner = "伯牙";
        c.color = "会";
        c.show();
        c.play("子期");
        //>>>Arrays.sort();
        System.out.println(">>>>>>>>>>>>>>>>>");
        ChinaPiolin c2 = new ChinaPiolin();
        c2.owner = "小王";
        c2.color = "深黄";
        c2.lines = 9;//对象来改static属性
        //ChinaPiolin.lines=9;//如此

        c2.show();
        c2.play("邻居");
        System.out.println("----------2000年过去了，挖出了伯牙的琴-------");

        c.play("考古人员");
    }
}